<?php

Yii::import('zii.widgets.CPortlet');

class ImageContentBox extends CPortlet
{
    public $DISPLAY_NUMBER = 3;

    public $imageContentNews;

    public $homePage = false;

    public function init()
    {
        /**
         * a box to show the imageContentNews
         * @author : nonglei
         * @date   : 12/05/2014
         */
        $this->imageContentNews = News::model()->getNewsModelByNewsType(News::TYPE_IMAGECONTENT);
        //  $this->contentCssClass="pictureNewsBox";
        $cs = Yii::app()->getClientScript();
        //  $cs->registerCssFile(Yii::app()->baseUrl.'/css/picturesnews.css');
        //	$cs->registerScriptFile(Yii::app()->baseUrl.'/js/picturesnews.js');
        parent::init();
    }
    protected function renderContent()
    {
        $this->render('imagecontentbox');
    }
}

?>
